{template('../public/header.html')}

<!--模板中心-->
<div class="subnav">
    <h1 class="title_2 line_x">模板中心</h1>
</div>

<div class="pad_10">
    <form action="{:U(MODULE_NAME & '/' & ACTION_NAME)}" method="post" enctype="multipart/form-data">
	{$template_list type='dict' key='k'}
    <div class="table_block">
        <div class="pad_10">
        <table>
            <tr>
              <td><img src="{:template_list(k)('themedir')}{:template_list(k)('preview')}" width="120" height="160" style="border:1px #E4E4E4 solid;" /></td>
              <td valign="top">
                <table>
                    <tr>
                        <th align="right"><input type="radio" name="dirname" value="{:template_list(k)('dirname')}" 
						{if template_list(k)('dirname')=default_theme}checked="checked"{/if} /></th>
                        <td width="160">
							{if template_list(k)('dirname')=default_theme}
                                <span class="red">默认</span>
                                <a href="__ROOT__/" target="_blank">[预览]</a>
                            {else}
                                <span class="blue">设为默认</span>
                            {/if}
                        </td>
                    </tr>
                    <tr><th align="right">模板文件夹：</th><td>{:template_list(k)('dirname')}</td></tr>
                    <tr><th align="right">模板名称：</th><td>{:template_list(k)('title')}</td></tr>
                    <tr><th align="right">模板作者：</th><td>
						{if template_list(k)('site')<>''}
							<a href="{:template_list(k)('site')}" target="_blank">{:template_list(k)('author')}</a>
						{else}
							{:template_list(k)('author')}
						{/if}
					</td></tr>
                    <tr><th align="right">版本：</th><td>{:template_list(k)('version')}</td></tr>                    
                </table>
              </td>
            </tr>
        </table>
        </div>
    </div>
    {/$template_list}
	{template('../public/_submit.html')}		
    </form>
</div>
{template('../public/footer.html')}
</body>
</html>